<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('更新成功！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div id="content">
<form id="form" action="{url('Site','SaveSpider')}" method="post">
<h3 class="title">爬虫设置</h3>
<table class="admin-table">
{loop $this->data['spiders'] $spider}
	<tr>
	<td>
	<label for="{$spider['en']}">屏蔽{$spider['name']}的访问</label>
	<input name="{$spider['en']}" id="{$spider['en']}" type="checkbox" value="1" {if $this->data['spider'][$spider['en']]}checked{/if} />
	</td>
	</tr>
{/loop}
	<tr><td><input id="btnSave" type="submit" value="保存" /></td></tr>
</table>
</form>
</div>